﻿
Partial Class WebForm_SelfManageTrainingRecord_SearchTrainingRecord
    Inherits System.Web.UI.UserControl

    Protected Sub btnQuery_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnQuery.Click

        ObjectDataSource1.SelectParameters("RegStatus").DefaultValue = ddlRegStatus.SelectedValue
        GV.DataBind()

    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            ObjectDataSource1.SelectParameters("VolunteerId").DefaultValue = Me.Page.User.Identity.Name
        End If
    End Sub

    Protected Sub ddlRegStatus_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlRegStatus.DataBound
        ddlRegStatus.Items.Insert(0, New ListItem(Me.GetLocalResourceObject("PleaseSelect"), String.Empty))

    End Sub
End Class
